package com.example.authority.client;

import com.example.commons.common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "customs-service", configuration = FeignInterceptor.class)
public interface CustomsClient {
    @DeleteMapping("/api/collect/{id}")
    Result deleteCustoms(@PathVariable("id") Long id);

    @DeleteMapping("/api/collect/user/{userId}")
    Result deleteCustomsByUserId(@PathVariable("userId") Long userId);
}
